Skip to content

Conversation

@bhjiwonoh
Copy link
Contributor

Changes

  • Added individual vault (pool) URLs
  • Changed the displayed symbol to use the vault name

I realized that listing pool symbols as per the guideline doesn’t seem suitable when viewed on the dashboard, so I’ve changed it to use name instead. Since our vaults can change their constituent assets, using a unique name seems more appropriate. Please let me know if you see any issues with this change.

@llamatester
Copy link

The affluent adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 39 passed, 39 total
Snapshots: 0 total
Time: 0.247 s
Ran all test suites.

Nb of pools: 7
 

Sample pools:
┌─────────┬────────────────────────────────────────────────────────┬───────┬────────────┬─────────────────────────┬────────────────────┬────────────────────┬──────────────────────────────────────────────────────────────────────────────────┐
│ (index) │ pool                                                   │ chain │ project    │ symbol                  │ tvlUsd             │ apyBase            │ url                                                                              │
├─────────┼────────────────────────────────────────────────────────┼───────┼────────────┼─────────────────────────┼────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤
│ 0       │ 'EQADQ6JcK0NMuNM5uwCcS9bjcn2RTvcxYIZjNlhIhywUrfBN-TON' │ 'TON' │ 'affluent' │ 'TON Lending Vault'     │ 1977044.6619616367 │ 0.7472641752950628 │ 'https://app.affluent.org/earn/EQADQ6JcK0NMuNM5uwCcS9bjcn2RTvcxYIZjNlhIhywUrfBN' │
│ 1       │ 'EQDtxQqkgIRQQR5hWlrQxiJMtLwjR3rEYNUBbEcvPDwCs1Ng-TON' │ 'TON' │ 'affluent' │ 'TON Multiply Vault'    │ 1437069.3997187186 │ 5.648149690937825  │ 'https://app.affluent.org/earn/EQDtxQqkgIRQQR5hWlrQxiJMtLwjR3rEYNUBbEcvPDwCs1Ng' │
│ 2       │ 'EQAGtgnr1G0XDilGURcOB3pUhl-Lo__J-TaJP0K4ey8cuSaW-TON' │ 'TON' │ 'affluent' │ 'USDT Lending Vault'    │ 1070858.3850833995 │ 8.447951157898693  │ 'https://app.affluent.org/earn/EQAGtgnr1G0XDilGURcOB3pUhl-Lo__J-TaJP0K4ey8cuSaW' │
│ 3       │ 'EQDXmtbt1-WSP00tSh6N6FH-4lX7LbnrjORClmtmuZqg4Ymm-TON' │ 'TON' │ 'affluent' │ 'Ethena Multiply Vault' │ 694393.2933704213  │ 19.10350331182468  │ 'https://app.affluent.org/earn/EQDXmtbt1-WSP00tSh6N6FH-4lX7LbnrjORClmtmuZqg4Ymm' │
│ 4       │ 'EQBzSItiC1vpDUEftDeWDyjgMutf6CIzme16gzn9iNlolpcY-TON' │ 'TON' │ 'affluent' │ 'USDT Multiply Vault'   │ 206688.17501927968 │ 8.398333687971967  │ 'https://app.affluent.org/earn/EQBzSItiC1vpDUEftDeWDyjgMutf6CIzme16gzn9iNlolpcY' │
│ 5       │ 'EQBowXTtxDTSMEJbrIIcYzIvSXZ9V5HW2Oo2iSW0chUzod3d-TON' │ 'TON' │ 'affluent' │ 'Gold Multiply Vault'   │ 12987.682684178546 │ 4.039821180208351  │ 'https://app.affluent.org/earn/EQBowXTtxDTSMEJbrIIcYzIvSXZ9V5HW2Oo2iSW0chUzod3d' │
│ 6       │ 'EQD3F7Ex_uxBjxEub8FgeDoYYUSIbAUVyehCb_JSiCVL369T-TON' │ 'TON' │ 'affluent' │ 'Ethena Vault'          │ 22.570188413120288 │ 12.657             │                                                                                  │
└─────────┴────────────────────────────────────────────────────────┴───────┴────────────┴─────────────────────────┴────────────────────┴────────────────────┴──────────────────────────────────────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125
Copy link
Collaborator

slasher125 commented Oct 13, 2025

Changed the displayed symbol to use the vault name

@bhjiwonoh problem with that is we parse the symbol and use that to assign meta data, eg if its a stablecoin, single/multi exposure, etc... so changing it to pool names isn't great. you can however add the name to poolMeta

@llamatester
Copy link

The affluent adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 39 passed, 39 total
Snapshots: 0 total
Time: 0.247 s
Ran all test suites.

Nb of pools: 7
 

Sample pools:
┌─────────┬────────────────────────────────────────────────────────┬───────┬────────────┬───────────────────────────────┬─────────────────────────┬────────────────────┬────────────────────┬──────────────────────────────────────────────────────────────────────────────────┐
│ (index) │ pool                                                   │ chain │ project    │ symbol                        │ poolMeta                │ tvlUsd             │ apyBase            │ url                                                                              │
├─────────┼────────────────────────────────────────────────────────┼───────┼────────────┼───────────────────────────────┼─────────────────────────┼────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤
│ 0       │ 'EQADQ6JcK0NMuNM5uwCcS9bjcn2RTvcxYIZjNlhIhywUrfBN-TON' │ 'TON' │ 'affluent' │ 'TON'                         │ 'TON Lending Vault'     │ 1966343.9607052153 │ 0.7287188634173485 │ 'https://app.affluent.org/earn/EQADQ6JcK0NMuNM5uwCcS9bjcn2RTvcxYIZjNlhIhywUrfBN' │
│ 1       │ 'EQDtxQqkgIRQQR5hWlrQxiJMtLwjR3rEYNUBbEcvPDwCs1Ng-TON' │ 'TON' │ 'affluent' │ 'TON-tsTON'                   │ 'TON Multiply Vault'    │ 1272929.5458966854 │ 6.1184947550475925 │ 'https://app.affluent.org/earn/EQDtxQqkgIRQQR5hWlrQxiJMtLwjR3rEYNUBbEcvPDwCs1Ng' │
│ 2       │ 'EQAGtgnr1G0XDilGURcOB3pUhl-Lo__J-TaJP0K4ey8cuSaW-TON' │ 'TON' │ 'affluent' │ 'USDT'                        │ 'USDT Lending Vault'    │ 963336.5186495518  │ 16.397187437600323 │ 'https://app.affluent.org/earn/EQAGtgnr1G0XDilGURcOB3pUhl-Lo__J-TaJP0K4ey8cuSaW' │
│ 3       │ 'EQDXmtbt1-WSP00tSh6N6FH-4lX7LbnrjORClmtmuZqg4Ymm-TON' │ 'TON' │ 'affluent' │ 'tsUSDe-USDe-USDT'            │ 'Ethena Multiply Vault' │ 494121.1053644667  │ 7.078820812978132  │ 'https://app.affluent.org/earn/EQDXmtbt1-WSP00tSh6N6FH-4lX7LbnrjORClmtmuZqg4Ymm' │
│ 4       │ 'EQBzSItiC1vpDUEftDeWDyjgMutf6CIzme16gzn9iNlolpcY-TON' │ 'TON' │ 'affluent' │ 'TON-tsTON-USDT-VAULT7'       │ 'USDT Multiply Vault'   │ 205865.3058385869  │ 15.73562845465602  │ 'https://app.affluent.org/earn/EQBzSItiC1vpDUEftDeWDyjgMutf6CIzme16gzn9iNlolpcY' │
│ 5       │ 'EQBowXTtxDTSMEJbrIIcYzIvSXZ9V5HW2Oo2iSW0chUzod3d-TON' │ 'TON' │ 'affluent' │ 'TON-tsTON-tsUSDe-USDT-XAUt0' │ 'Gold Multiply Vault'   │ 13383.93676065384  │ 3.890163863330379  │ 'https://app.affluent.org/earn/EQBowXTtxDTSMEJbrIIcYzIvSXZ9V5HW2Oo2iSW0chUzod3d' │
│ 6       │ 'EQD3F7Ex_uxBjxEub8FgeDoYYUSIbAUVyehCb_JSiCVL369T-TON' │ 'TON' │ 'affluent' │ 'tsUSDe-USDT'                 │ 'Ethena Vault'          │ 34.686575708690306 │ 11.334299674060892 │                                                                                  │
└─────────┴────────────────────────────────────────────────────────┴───────┴────────────┴───────────────────────────────┴─────────────────────────┴────────────────────┴────────────────────┴──────────────────────────────────────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@bhjiwonoh
Copy link
Contributor Author

@slasher125
Thanks. I checked and adjusted the display method of poolMeta by referring to other protocols.

Separately, I have a question — could you explain how the "30d Avg APY" is calculated?

@bhjiwonoh
Copy link
Contributor Author

@slasher125 I’ll add the logic to apply the most appropriate symbol and reopen the PR

@bhjiwonoh bhjiwonoh marked this pull request as draft October 15, 2025 08:20
@slasher125
Copy link
Collaborator

Separately, I have a question — could you explain how the "30d Avg APY" is calculated?

we calculate it server side, just a moving average of the last 30day apy values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants